package cn.mdx.controller;

import cn.mdx.adminservice.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@SuppressWarnings({"ALL", "AlibabaClassMustHaveAuthor"})
@RestController
@Controller
@CrossOrigin
public class Login {

    @Autowired
    private AdminService adminService;

/*
    @PostMapping("ladminlogin")
    public String adminlogin(HttpSession session, String username, String password){
        System.out.println(username+"----"+password);
        adminService.login(username,password,session);
        System.out.println("成功");
        return "123";
    }
*/

}
